package com.handsome.迭代器模式;

import java.util.ArrayList;
import java.util.List;

/**
 * @author niechun
 * @date 2023/3/19 13:59
 */
public class Client {
    public static void main(String[] args) {
        List<College> list=new ArrayList<>();
        ComputerCollege computerCollege = new ComputerCollege();
        InfoCollege infoCollege = new InfoCollege();
        list.add(computerCollege);
        list.add(infoCollege);
        Output output = new Output(list);
        output.printCollege();


    }
}
